Skip to content

Reland: Wire native CSS parsing for fontVariant#55881

Closed
NickGerleman wants to merge 1 commit intofacebook:mainfrom
NickGerleman:export-D95021048
Closed

Reland: Wire native CSS parsing for fontVariant#55881
NickGerleman wants to merge 1 commit intofacebook:mainfrom
NickGerleman:export-D95021048

Conversation

@NickGerleman
Copy link
Copy Markdown
Contributor

Summary:

Reland

No changes. This was on the same stack as a bugged change to aspectRatio parsing, which caused S627731, and this was backed out as well.

Original

Gate processFontVariant behind enableNativeCSSParsing(). When the flag is on, CSS font-variant strings like "small-caps oldstyle-nums" are parsed natively using the existing CSS font-variant parser instead of being preprocessed in JS.

Also removes react_native_expect(false) hard error on unknown font variant values, replacing it with a graceful skip.

Changelog: [Internal]

Reviewed By: javache

Differential Revision: D95021048

Summary:
## Reland

No changes. This was on the same stack as a bugged change to `aspectRatio` parsing, which caused S627731, and this was backed out as well.

## Original

Gate `processFontVariant` behind `enableNativeCSSParsing()`. When the flag is on, CSS font-variant strings like `"small-caps oldstyle-nums"` are parsed natively using the existing CSS font-variant parser instead of being preprocessed in JS.

Also removes `react_native_expect(false)` hard error on unknown font variant values, replacing it with a graceful skip.

Changelog: [Internal]

Reviewed By: javache

Differential Revision: D95021048
@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Mar 3, 2026
@meta-codesync
Copy link
Copy Markdown

meta-codesync bot commented Mar 3, 2026

@NickGerleman has exported this pull request. If you are a Meta employee, you can view the originating Diff in D95021048.

@meta-codesync
Copy link
Copy Markdown

meta-codesync bot commented Mar 5, 2026

This pull request has been merged in 2f6c744.

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Mar 5, 2026
@react-native-bot
Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @NickGerleman in 2f6c744

When will my fix make it into a release? | How to file a pick request?

zoontek pushed a commit to zoontek/react-native that referenced this pull request Mar 9, 2026
Summary:
Pull Request resolved: facebook#55881

## Reland

No changes. This was on the same stack as D95032494 which was backed out due to bug.

## Original

Gate `processFontVariant` behind `enableNativeCSSParsing()`. When the flag is on, CSS font-variant strings like `"small-caps oldstyle-nums"` are parsed natively using the existing CSS font-variant parser instead of being preprocessed in JS.

Also removes `react_native_expect(false)` hard error on unknown font variant values, replacing it with a graceful skip.

Changelog: [Internal]

Reviewed By: fkgozali

Differential Revision: D95021048

fbshipit-source-id: e75ce199565c7de3b883a95c61e5e534c2018cba
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged This PR has been merged. meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants